#include "stdafx.h"
#include "Client.h"

CClient::CClient()
{
    this->m_uiOffset = 0;
}

CClient::CClient(SOCKADDR_IN& addr, UINT cbAddrLen, SOCKET hSocket, LPPER_IO_OPERATION_DATA lpPerIOData)
{
    this->m_addr = addr;
    this->m_uiAddrLen = cbAddrLen;
    this->m_hSocket = hSocket;

    this->m_uiOffset = 0;
    this->m_pPerIOData = lpPerIOData;
    this->m_posClientSpirte = NULL;
}

CClient::~CClient(void)
{
}

UINT& CClient::GetOffset()
{
    return this->m_uiOffset;
}

VOID CClient::SetOffset(const UINT &uiOffset)
{
    this->m_uiOffset = uiOffset;
}

LPPER_IO_OPERATION_DATA CClient::GetPerIOData()
{
    return this->m_pPerIOData;
}

VOID CClient::AttachSprite(POSITION pos)
{
    this->m_posClientSpirte = pos;
}

POSITION CClient::GetAssociateSprite()
{
    return this->m_posClientSpirte;
}
